MPS2_INVERTER communication driver

 

MPS2_INVERTER communication driver is the driver to communicate with invert of MPS Type II.

 

1. Read Settings

<Figure 1> is read setting example of MPS2_INVERTER communication driver.

<Figure 1>  Read setting example of MPS2_INVERTER communication driver

Device part of  <Figure 1> input Device Com port( COM1 ), Baud rate( 9600 ), Parity bit( 2 ), Data bit( 8 ), Stop bit( 1 ) respectively, according to setting of meter.

 

MPS2_INVERTER communication driver read schedule

Read schedule setting parameters are as follows:

1) Station address – station number of Inverter.

2) Read command – RM : Read monitoring data, RS : Read setting data.

3) Read start address – fixed to 0.

4) Save start address for Communication Server – readed data saving start address of Communication Server.

5) Read Size – fixed to 19.

 

Read schedule example) 

READ, 1, RM, 0, 0, 19,
READ, 1, RS, 0, 30, 19,
 

<Table 1> is data saving address and contents for RM read command.

command Contents Position Word Data Range
RM Read Monitoring data 0 1 System reserved 0
1 1 System status 0~251
2 1 Error status 0~15
3 1 DC output current value 0~9999
4 1 DC output voltage value 0~9999
5 1 Integrated current value 0~9999
6 1 Cumulative running time 0~9999
7 2 Total integrated current value 0~99999999
8 1 Read out data type 0~50
9 1 Read out memory number 0~99
10 1 Pulse ON time 0~999
11 1 Pulse OFF time 0~999
12 1 Output setting 1 0~9999
13 1 Output setting 2 0~9999
14 1 Preset value 0~9999
15 1 Number of decimals for displaying current 0~3
16 1 Number of decimals for displaying voltage 0~3
17 1 Rated output current value 0~9999
18 1 Rated output voltage value 0~9999
<Table 1> Data saving address and contents for RM command


<Table 2> is data saving address and contents for RS read command.

command Contents Position Word Data Range
RS Read Setting data 0 1 Data-setting mode 0~246
1 1 Memory#1 0~99
2 1 Memory#2 0~99
3 1 Pulse ON time 0~999
4 1 Pulse OFF time 0~999
5 1 Output setting 1 0~9999
6 1 Output setting 2 0~9999
7 1 Preset value 0~9999
8 1 System control 0~15
9 1 Unit/operation mode 0~122
10 1 Start weak power time 0~9999
11 1 Start weak voltage value(rate) Rate : 0~99
Voltage : 0~9999
12 1 Start week current value 0~9999
13 1 Soft start time 0~9999
14 1 Soft stop time 0~9999
15 2 Total preset value 0~99999999
16 1 Output error detection rate 0~99
17 1 Excessive output detection rate 0~102
18 1 Insufficient output detection rate 0~102
<Table 2> Data saving address and contents for RS command

MPS2_INVERTER communication driver store the same data in WORD, DWORD, FLOAT, DOUBLE memory, but the data formats are different.

Total integrated current value(7th of the monitoring data) and Total preset value (15th of the setting data) are 2WORD values, so DWORD area data must be used.

2. Write settings

MPS2_INVERTER The value of the setting data (setting data in Table 2) can be changed by the writing setting of the driver.

 

Digital write

Not used.

 

Analog write

Analog write setting parameters are as follows:

1)  PORT          port no. (0 ~ 255)

2) STATION        station number of Inverter.

3) ADDRESS       Enter the address to control from 1 to 18 position.

 

Write example 1)

PORT: 0 STATION: 1 ADDRESS: 1 Output value: 10

Outputs 10 to Memory1(The 1st value in Table 2).

 

Write example 1)

PORT: 0 STATION: 1 ADDRESS: 5 Output value: 4

Outputs 4 to Output setting 1(The 5st value in Table 2).